package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.domain.Dish;

import java.util.List;


public interface DishService extends IService<Dish> {

    Page<Dish> getdishPage(Page<Dish> page, String name);

    void saveAndFlavor(Dish dish);

    Dish findById(long id);

    void updateDash(Dish dish);

    void deleteByIds(Long[] ids);

    void updateStatusByid(Integer status, Long[] ids);

    List<Dish> selectByCategoryId(Long categoryId,Integer status);
}
